﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="News_Info.ascx.cs" Inherits="AdminPortal_Controls_Tintuc_News_Info" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register src="../Toolbox.ascx" tagname="Toolbox" tagprefix="uc1" %>
<%@ Register src="../FileUpload.ascx" tagname="FileUpload" tagprefix="uc2" %>
<span style="color:Red;font-style:italic;font-size:11px;margin-bottom:5px;display:block;"><asp:Label ID="lblthongbao" runat="server" Text=""></asp:Label></span>
<div id="HNGdatagrid">
    <div class="header-datagrid">
        <span class="icon-edit header-text">
                <asp:Label ID="lblTitle" runat="server" Text="Danh muc"></asp:Label>
        </span>
    </div>
    <div class="navibar-control">
            <uc1:Toolbox ID="Toolbox1" runat="server" ShowSave="true" OnSaveClick="btnSave_Click"
                                                      ShowDel="true" OnDelClick="btnDel_Click"
                                                      ShowApply="true" OnApplyClick="btnApply_Click"
                                                      ShowRefesh="true" ShowBack="true" OnBackClick="btnBack_Click"
                                                        />        
        <div class="clearB"></div>
    </div>
    <div class="content-main"> 
         <table cellpadding="0" cellspacing="0" width="100%" class="tableEditInfo">
                        <tr>
                            <td width="120" class="itemTableLeft">ID</td>
                            <td class="itemTableRight">
                                <asp:TextBox ID="txtID" runat="server" Width="50px" Enabled="false"></asp:TextBox>
                                <asp:HiddenField ID="hidID" runat="server" />
                            </td>
                        </tr>       
                        <tr>
                            <td class="itemTableLeft" width="130">Tiêu đề: </td>
                            <td align="left" class="itemTableRight">
                                <asp:TextBox ID="txtTieude" runat="server" CssClass="BannerInput" Width="500"  class="easyui-validatebox" required="true" >
                                </asp:TextBox>         
                            </td>
                        </tr> 
                       <%-- <tr>
                            <td class="itemTableLeft" >Nhóm tin: </td>
                            <td align="left" class="itemTableRight">
                                <asp:TextBox ID="txtSameNews" runat="server"></asp:TextBox>
                                 <asp:RegularExpressionValidator ID="Validate_thutu" runat="server" ControlToValidate="txtSameNews"
                                                        Display="Dynamic" ErrorMessage="số không hợp lệ" 
                                    ValidationExpression="^\d+$" Font-Size="12px"></asp:RegularExpressionValidator> 
                            </td>
                          </tr> --%>
                        <tr>
                            <td class="itemTableLeft" >Danh mục tin: </td>
                            <td align="left" class="itemTableRight">
                                <asp:DropDownList ID="ddlCateParent" runat="server" >
                                </asp:DropDownList> 
                                | Loại tin
                                 <asp:DropDownList ID="ddlLoaiTin" runat="server" >
                                </asp:DropDownList>            
                            </td>
                        </tr>                           
                       <%-- <tr>
                            <td class="itemTableLeft">Tin hot:</td>
                            <td align="left">
                                <asp:CheckBox ID="chkTinHot" runat="server" Checked="True" />            
                            </td>
                        </tr>--%>  
                        <tr>
                            <td class="itemTableLeft">Tin nổi bật:</td>
                            <td align="left" class="itemTableRight">
                                <asp:CheckBox ID="chkNoiBat" runat="server" Checked="True" />    
                                &nbsp;    
                                Trạng thái: <asp:CheckBox ID="chkStatus" runat="server" Checked="True" />         
                            </td>
                        </tr>  
                        <tr>
                            <td class="itemTableLeft" style="padding-top:10px" valign="top">Tóm tắt :</td>
                            <td align="left" class="itemTableRight">
                                <asp:TextBox ID="txtTomTat" runat="server" TextMode="MultiLine" Width="600" Height="90"></asp:TextBox> 
                                </td>
                        </tr>
                        <tr>
                            <td class="itemTableLeft" ></td>
                            <td align="left" class="itemTableRight">
                                <asp:CheckBox ID="chkFiles" runat="server" 
                                    Text="Sử dụng file thay thế cho bài viết" AutoPostBack="True" ForeColor="red" 
                                    oncheckedchanged="chkFiles_CheckedChanged"/>     
                            </td>
                        </tr>                                            
                        <tr id="ShowChonFile" runat="server" visible="false">
                            <td class="itemTableLeft" style="padding-top:10px" valign="top"> Ảnh: </td>
                            <td align="left" class="itemTableRight">                                
                                <uc2:FileUpload ID="FileUpload1" runat="server" UploadFolder="~/upload/News/" />
                                <asp:Image ID="img_news" runat="server" Width="35" ImageAlign="Bottom" Visible="false" ></asp:Image>
                                &nbsp;<asp:ImageButton ID="imgbtn_Delete" runat="server" Width="16" Height="16" 
                                    onclick="imgbtn_Delete_Click" Enabled="false" ToolTip="xoá ảnh" /><asp:Label ID="lblDelete" runat="server" Text="xoá ảnh" Visible="false"/>
                            </td>
                        </tr>
                        <tr id="ShowNoiDung" runat="server">                            
                            <td align="left" nowrap="nowrap" colspan="2">
                             Nội dung :<br />
                                <hng:FCKeditor ID="fckMoTa" runat="server" BasePath = "~/AdminPortal/fckeditor/" Width = "100%" Height = "600" ToolbarSet="Default"></hng:FCKeditor>    
                            </td>
                        </tr>      
                    </table>
    </div>
</div>